/*
 * Notifier.h
 *
 *  Created on: Nov 13, 2011
 *      Author: gonzalo
 */

#ifndef NOTIFIER_H_
#define NOTIFIER_H_

#include "../ConditionVariable/ConditionVariable.h"
#include "../../Server/ColaMensajesSDL.h"
#include "../../SDLtoolkit/Event.h"
#include "SdlEventsReader.h"
#include "ColaToColaReader.h"

class Notifier : public ConditionVariable{
public:
	Notifier(void* engine,ColaMensajesSDL* entrada);
	virtual ~Notifier();

	void start();

	Event* pullEvent();
	bool hasEvents();

	void terminar();
private:
	void* engine;

	ColaMensajesSDL* recopilados;

	SdlEventsReader* sdlEvents;
	ColaToColaReader* msgExternosReader;
};

#endif /* NOTIFIER_H_ */
